Package client.teavm.common


package client.teavm.common
Common code shared between the TeaVM JavaScript and WebAssembly builds.

This package contains classes and interfaces that are independent of the specific TeaVM backend (JS or WASM). It provides shared functionality used by both build variants to communicate with browser APIs, manage buffers, and handle imported/exported interfaces.

Purpose

  • Defines the IImportedApi interface used to bridge the emulator core with browser-side JavaScript code.
  • Provides data conversion utilities and abstractions for WebAudio, video rendering, and general browser interaction.

All code here is platform-neutral within the context of TeaVM — it avoids direct dependencies on JavaScript runtime functions or WebAssembly specifics, enabling reuse across both build targets.

Autor:
Ken Händel
  • Klasse
    Beschreibung
    The ExportedApi class provides the external API that allows interaction with the C64 SID chip emulator and audio playback.
    Provides a set of utility functions that can be accessed from JavaScript or WebAssembly builds generated by TeaVM.
    Exports to JavaScript.
    Exports to JavaScript.
    Imports from JavaScript